home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Przegladarki internetowe / Mozilla Seamonkey 1.0.5 pl / seamonkey-1.0.5.pl-PL.win32.installer.exe / BROWSER.XPI / bin / chrome / toolkit.jar / content / global / hiddenWindow.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-03-10  |  4.6 KB  |  113 lines

  1. <?xml version="1.0"?> 
  2.  
  3. <!-- ***** BEGIN LICENSE BLOCK *****
  4.  Version: MPL 1.1/GPL 2.0/LGPL 2.1
  5.  
  6.  The contents of this file are subject to the Mozilla Public License Version
  7.  1.1 (the "License"); you may not use this file except in compliance with
  8.  the License. You may obtain a copy of the License at
  9.  http://www.mozilla.org/MPL/
  10.  
  11.  Software distributed under the License is distributed on an "AS IS" basis,
  12.  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13.  for the specific language governing rights and limitations under the
  14.  License.
  15.  
  16.  The Original Code is Mozilla Communicator client code, released
  17.  March 31, 1998.
  18.  
  19.  The Initial Developer of the Original Code is
  20.  Netscape Communications Corporation.
  21.  Portions created by the Initial Developer are Copyright (C) 1998-1999
  22.  the Initial Developer. All Rights Reserved.
  23.  
  24.  Contributor(s):
  25.  
  26.  Alternatively, the contents of this file may be used under the terms of
  27.  either of the GNU General Public License Version 2 or later (the "GPL"),
  28.  or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29.  in which case the provisions of the GPL or the LGPL are applicable instead
  30.  of those above. If you wish to allow use of your version of this file only
  31.  under the terms of either the GPL or the LGPL, and not to allow others to
  32.  use your version of this file under the terms of the MPL, indicate your
  33.  decision by deleting the provisions above and replace them with the notice
  34.  and other provisions required by the GPL or the LGPL. If you do not delete
  35.  the provisions above, a recipient may use your version of this file under
  36.  the terms of any one of the MPL, the GPL or the LGPL.
  37.  
  38.  ***** END LICENSE BLOCK ***** -->
  39.  
  40. <?xul-overlay href="chrome://navigator/content/navigatorOverlay.xul"?>
  41.  
  42. <!-- hiddenwindow is a "minimal" XUL window intended for creating the,
  43.      er, hidden window.  This window is never shown, but on platforms
  44.      which leave the app running after the last (visible) window is shut
  45.      down, this window does hold a browser menubar.
  46.        Though this window looks a lot like navigator.xul, that xul
  47.      is unsuitable because it's subject to the whims of its associated
  48.      appcore, which among other things causes it to load content documents
  49.      undesirable for this window.
  50.        Arguably a simpler menu structure could be substituted, but
  51.      the full one was included for now in anticipation of the whole thing
  52.      becoming an included file someday. -->
  53.  
  54. <!-- Localizable string definitions from navigator.xul. -->
  55. <!DOCTYPE window [
  56. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  57. %brandDTD;
  58. <!ENTITY % buildDTD SYSTEM "chrome://global/content/build.dtd" >
  59. %buildDTD;
  60. <!ENTITY % navigatorDTD SYSTEM "chrome://navigator/locale/navigator.dtd" >
  61. %navigatorDTD;
  62. ]>
  63.  
  64. <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  65.   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  66.   title="hidden"
  67.   titlemodifier="&mainWindow.titlemodifier;" 
  68.   titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
  69.   onload="hiddenWindowStartup();">
  70.  
  71.   <!-- JS from navigator.xul, to handle the menu commands -->
  72.   <script type="application/x-javascript" src="chrome://global/content/strres.js"/>
  73.   <script type="application/x-javascript" src="chrome://navigator/content/browser.js"/>
  74.   <script type="application/x-javascript" src="chrome://navigator/content/navigator.js"/>
  75.  
  76.   <!-- Shared Bookmarks Utility Library -->
  77.   <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarks.js"/>
  78.   <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarksMenu.js"/>
  79.  
  80.   <stringbundleset id="stringbundleset">
  81.     <stringbundle id="bundle_navigator" src="chrome://navigator/locale/navigator.properties"/>
  82.   </stringbundleset>
  83.  
  84.   <!-- keys are appended from the overlay -->
  85.   <keyset id="tasksKeys">
  86.     <keyset id="navKeys">
  87.       <key id="showHideSidebar"/>
  88.     </keyset>
  89.   </keyset>
  90.  
  91.   <!-- commands are appended from the overlay -->
  92.   <commandset id="commands">
  93.     <commandset id="tasksCommands"/>
  94.     <commandset id="globalEditMenuItems"/>
  95.     <commandset id="selectEditMenuItems"/>
  96.     <commandset id="undoEditMenuItems"/>
  97.     <commandset id="clipboardEditMenuItems"/>
  98.   </commandset>
  99.  
  100.   <broadcasterset id="navBroadcasters"/>
  101.  
  102.   <template id="bookmarksMenuTemplate"/>
  103.  
  104.   <!-- it's the whole navigator.xul menubar! hidden windows need to
  105.        have a menubar for situations where they're the only window remaining
  106.        on a platform that wants to leave the app running, like the Mac.
  107.   -->
  108.   <toolbox id="toolbox">
  109.     <menubar id="main-menubar" position="1"/>
  110.   </toolbox>
  111.  
  112. </window>
  113.